package com.detect.core;

import java.util.HashMap;
import java.util.List;
import com.detect.model.FileInfo;

public interface IFileOperator {
	
	// scan all the file which are below the path given
	List<String> scannFiles(List<FileInfo> files, String path, boolean isScanSub);
	
	// rename the source file to new name
	boolean renameFile(FileInfo fileSrc, String newName);
	
	// remove sub string from the source directory
	void removeSubStr(String path, String removeStr);
	
	// replace sub string from the source directory
	void replaceSubStr(String path, String replace, String replaced);
	
	//remove all the file artist from the source directory
	void removeArtist(String path);
	
	boolean setMD5String(List<FileInfo> fileList);
	
	HashMap<String, List<FileInfo>> getResult();
}
